package metier.sess;

import java.util.List;

import javax.ejb.Local;

import metier.entities.Declaration;
import metier.entities.Offre;


@Local
public interface IDeclarationLocal {

	
	public  void addDeclaration(Declaration d);
	public List<Declaration> getAllDeclaration();
	public  Declaration getDeclaration(Integer Id);
	public void updateDeclaration(Declaration d);
	public void deleteDeclaration(Integer Id);
	public List<Declaration> getAllDeclarationActive();
	List<Declaration> getDeclarationGagnante(Offre o);
	
	List<Declaration> getAllDeclarationActivePrUser(Integer Id, String type,Integer statut);
	
	
	public List<Declaration> getNewDeclarationsWithoutPrice(Integer IdUser,Offre o);
	public Double MinDeclaration(Integer IdOffre);
	
	
}
